<script language="javascript" >
	window.onload  = function(){
		document.getElementById("waiting").setAttribute('style','display:none');		
	};
	function check_frm2()
	{
		document.getElementById("id_re_name").innerHTML = "";
		document.getElementById("id_re_tel").innerHTML = "";	
		document.getElementById("id_re_address").innerHTML = "";
		document.getElementById("id_re_email").innerHTML = "";		
		r_form = document.frmpay;
		if(r_form.re_name.value=='') {
			document.getElementById("id_re_name").innerHTML = "Bạn chưa nhập Họ tên !";
			r_form.re_name.focus();
			return false;
		}	
			
		if(r_form.re_tel.value=='') {
			document.getElementById("id_re_tel").innerHTML = "Bạn chưa nhập Số điện thoại !";
			r_form.re_tel.focus();
			return false;
		}
		
		if(r_form.re_address.value=='') {
			document.getElementById("id_re_address").innerHTML = "Bạn chưa nhập Address !";
			r_form.re_address.focus();
			return false;
		}
		
		//Email
		var email = document.getElementById('re_email');		
		if(email.value=='') {
			document.getElementById("id_re_email").innerHTML = "Bạn chưa nhập Email !";
			r_form.re_email.focus();
			return false;
		}
		var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (!filter.test(email.value)) {
			document.getElementById("id_re_email").innerHTML = "Email chưa hợp lệ !";
			r_form.re_email.focus();
			return false;
		}							
		document.getElementById("waiting").removeAttribute('style');		
		return true;
	}
</script>
<script type="text/javascript" src="<?=PATH_HTTP?>highslide/highslide-with-gallery.js"></script>
<link rel="stylesheet" type="text/css" href="<?=PATH_HTTP?>highslide/highslide.css" />
<script type="text/javascript"> 
//<![CDATA[
hs.registerOverlay({
	html: '<div class="closebutton" onclick="return hs.close(this)" title="Đóng"></div>',
	position: 'top right',
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});
hs.graphicsDir = '<?=PATH_HTTP?>highslide/graphics/';
hs.wrapperClassName = 'borderless';
hs.align = 'center';
//]]>
</script> 		

<!--begin left-->
 <? include_once("templates/left.html");?>
 <!-- end left-->
 <!-- begin content-->
<div id="content">
					
    
    <div class="top">
  <div class="left"></div>
  <div class="right"></div>
  <div class="center">
    <h1> Giỏ hàng</h1>
  </div>
</div>

<div class="middle">
<?=$str?><?=$html?>	


  <table width="100%"  border="0" cellspacing="0" cellpadding="0" >
  <form action="<?=$action?>" method="post" name="frmpay" enctype="multipart/form-data" onsubmit="return check_frm2();"  >
  	  <tr><td> <?=$string?><?=$thongbao1?></td></tr>
	  <tr><td>&nbsp;</td></tr>
	  <tr>
      <td>
	  <div class="center_title_bar">&nbsp;&nbsp;&nbsp;&nbsp;THÔNG TIN KHÁCH HÀNG</div>
	  <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-family:Tahoma; font-size:12px; ">        
          <tr>
          <td height="35" align="right" class="textcontent">Họ tên Người nhận <font color="#FF0000" size="2">(*)</font></td>
          <td>&nbsp;</td>
          <td>
          	<input type="text" name="re_name" size="45" value="<?=$fullname?>">			
		  </td>
        </tr>
		  <tr><td></td><td colspan="3" id="id_re_name" class="alert"></td></tr>							  

      <tr>
          <td height="27" align="right" class="textcontent">Điện thoại  <font color="#FF0000" size="2">(*)</font></td>
          <td>&nbsp;</td>
          <td><input type="text" name="re_tel" size="45" value="<?=$tel?>"> </td>
        </tr>
		  <tr><td></td><td colspan="3" id="id_re_tel" class="alert"></td></tr>			  
        <tr>
          <td height="30" align="right" class="textcontent">Địa chỉ <font color="#FF0000" size="2">(*)</font></td>
          <td>&nbsp;</td>
          <td><input type="text" name="re_address"  value="<?=$address?>" size="45"></td>
        </tr>
		  <tr><td></td><td colspan="3" id="id_re_address" class="alert" ></td></tr>								  
        <tr>
          <td height="31" class="textcontent"><div align="right">Email : <font color="#FF0000" size="2">(*)</font></div></td>
          <td>&nbsp;</td>
          <td><input type="text" id="re_email" name="re_email" size="45" value="<?=$email?>"></td>
        </tr>						  
		<tr><td></td><td colspan="3" id="id_re_email" class="alert"></td></tr>	
        <tr>
          <td height="170" class="textcontent"> <div align="right">
          Ghi chú 
          </div></td>
          <td>&nbsp;</td>
          <td><textarea name="re_content"   cols="55"   rows="10" ></textarea></td>
        </tr>
	  <tr><td></td><td colspan="3" id="id_re_content" class="alert"></td></tr>							  
       <tr><td height="37">&nbsp;</td>
       <td>&nbsp;</td>
         <td><input type="submit" name="Send"  value=" Đặt mua " style=" color:#FFFFFF; background-color:#2f66a7;border:none;  font-weight:bold; font-family:Tahoma; height:25PX;" />
         <input type="reset" name="re_send2"  value=" Làm lại " style="border:none; background:RED; color:#FFFFFF; font-weight:bold; font-family:Tahoma;height:25PX;"  /></td></tr>
       <tr>         
			<td colspan='3' height="20" align="center" >&nbsp;&nbsp;<img id='waiting' src='<?=PATH_HTTP?>images/wait.gif'></td>		          	
       </tr>
            				   
	 </table>									
	  </td>
    </tr></form>
  </table>	
						
</div>

<div class="bottom">
  <div class="left"></div>
  <div class="right"></div>
  <div class="center"></div>
</div>

 
    

<!--end content-->
    
 